﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="MPBlog.UserControls.ArticleListBase" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<link href="<%=CurrentThemeAbsoluteRoot("Default")%>resources/css/core.css" rel="stylesheet"
    type="text/css" />
<script src="<%=CurrentThemeAbsoluteRoot("Default")%>resources/scripts/core.js" type="text/javascript"></script>
<%@ Import Namespace="MPBlog.Model" %>
<asp:Repeater runat="server" ID="rptArticleList" OnItemCommand="RptArticleListItemCommand">
    <HeaderTemplate>
        <table class="showDataTable" style="margin-bottom: 10px;">
            <thead>
                <tr>
                    <th>
                        标题
                    </th>
                    <th>
                        发表日期
                    </th>
                    <th>
                        管理
                    </th>
                </tr>
            </thead>
    </HeaderTemplate>
    <ItemTemplate>
        <tr>
            <td>
                <a href="<%=AdminAbsoluteRoot()%>ArticleManage/ArticleDetail.aspx?articleId=<%#((Article)Container.DataItem).Id%>">
                    <%#((Article)Container.DataItem).Title %></a>
            </td>
            <td>
                <%#((Article)Container.DataItem).PublishTime %>
            </td>
            <td>
                <asp:LinkButton Text="删除" runat="server" CommandName="lbDelete" CommandArgument="<%#((Article)Container.DataItem).Id%>"></asp:LinkButton>
            </td>
        </tr>
    </ItemTemplate>
    <FooterTemplate>
        </table>
    </FooterTemplate>
</asp:Repeater>
<webdiyer:AspNetPager ID="aspNetArticlePager" runat="server" OnPageChanging="OnAspNetPagerPageChanging"
    CssClass="paginator" CurrentPageButtonClass="cpb" AlwaysShow="False" FirstPageText="首页"
    LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" ShowCustomInfoSection="Left"
    ShowInputBox="Never" CurrentPageButtonPosition="Center" UrlPaging="True" LayoutType="Table"
    CustomInfoHTML="第 %CurrentPageIndex% 页，共 %PageCount% 页" CustomInfoClass= "paginatorCustomInfo"
    >
</webdiyer:AspNetPager>
